package com.ruoyi.quartz.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.quartz.mapper.CustomerMapper;
import com.ruoyi.quartz.mapper.OrderListMapper;
import com.ruoyi.quartz.service.ICustomerService;
import com.ruoyi.quartz.service.IOrderListService;
import com.ruoyi.system.domain.DTO.OrderListDto;
import com.ruoyi.system.domain.vo.CustomerVo;
import com.ruoyi.system.domain.vo.OrderLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;


@Service
@Transactional
public class CustomerServiceImpl implements ICustomerService {

    @Autowired
    private CustomerMapper customerMapper;
    @Override
    public List<CustomerVo> list(CustomerVo customerVo) {
        return customerMapper.list(customerVo);
    }

    @Override
    public int insertCustomerVo(CustomerVo customerVo) {
        return customerMapper.insertCustomerVo(customerVo);
    }

    @Override
    public int updateCustomerVo(CustomerVo customerVo) {
        return customerMapper.updateCustomerVo(customerVo);
    }

    @Override
    public int deleteCustomerVoById(String id) {
        return customerMapper.deleteCustomerVoById(id);
    }

    @Override
    public CustomerVo selectCustomerVoById(String id) {
        return customerMapper.selectCustomerVoById(id);
    }
}
